import java.util.Scanner;
public class demofour {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的身份证号码");
        String id = sc.next();
        String year = id.substring(6,10);
        String month = id.substring(10,12);
        String day = id.substring(12,14);
        int xing = id.charAt(16);
        String gender;
        if (xing % 2 == 0) {
           gender = "女";
        }else{
            gender = "男";
        }
        System.out.println("人物信息为：");
        System.out.println("出生年月日为："+year+"年"+month+"月"+day+"日");
        System.out.println("性别为："+gender);
    }
}
